package club.banyuan.cat;

import club.banyuan.dog.Dog;

public class Cat {
    private String breed;
    private String color;

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }

    public Cat(String breed, String color) {
        this.breed = breed;
        this.color = color;
    }

    public String getInfo() {
        return this.color + this.breed;
    }

    public void print() {
        System.out.println(getInfo());
    }

    public void playWith(Dog dog) {
        System.out.println(getInfo() + "和" + dog.getInfo() + "一起玩");
    }

}
